package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ServiceTypeMapper;
import com.zch.dao.model.ServiceType;
import com.zch.dao.model.ServiceTypeExample;
import com.zch.daoEx.ServiceTypeMapperEx;
import com.zch.daoEx.model.ServiceTypeEx;

@Service
public class ServiceTypeService {
	@Autowired
	private ServiceTypeMapper serviceTypeMapper;
	
    @Autowired
    private ServiceTypeMapperEx serviceTypeMapperEx;

	public int countByExample(ServiceTypeExample example) {
		return this.serviceTypeMapper.countByExample(example);
	}

	public ServiceType selectByPrimaryKey(String id) {
		return this.serviceTypeMapper.selectByPrimaryKey(id);
	}

	public List<ServiceType> selectByExample(ServiceTypeExample example) {
		return this.serviceTypeMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.serviceTypeMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ServiceType record) {
		return this.serviceTypeMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(ServiceType record) {
		return this.serviceTypeMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ServiceTypeExample example) {
		return this.serviceTypeMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ServiceType record, ServiceTypeExample example) {
		return this.serviceTypeMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(ServiceType record, ServiceTypeExample example) {
		return this.serviceTypeMapper.updateByExample(record, example);
	}

	public int insert(ServiceType record) {
		return this.serviceTypeMapper.insert(record);
	}

	public int insertSelective(ServiceType record) {
		return this.serviceTypeMapper.insertSelective(record);
	}

    public List<ServiceTypeEx> selectList(Map<String, Object> map) {
        return this.serviceTypeMapperEx.selectList(map);
    }

    public List<ServiceType> selectAppList() {
        return this.serviceTypeMapperEx.selectAppList();
    }

}
